package com.estun.backroundManagementService.service.Impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.estun.backroundManagementService.aop.operationLog.LogErrorInfo;
import com.estun.backroundManagementService.aop.operationLog.LogInfo;
import com.estun.backroundManagementService.aop.operationLog.mapper.LogErrorInfoMapper;
import com.estun.backroundManagementService.aop.operationLog.mapper.LogInfoMapper;
import com.estun.backroundManagementService.service.LogInfoService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author yusiocng
 * @date 2022/6/23
 * @description 日志处理service
 */
@Slf4j
@AllArgsConstructor
@Service
public class LogInfoServiceImpl extends ServiceImpl<LogInfoMapper, LogInfo> implements LogInfoService {

    private final LogErrorInfoMapper logErrorInfoMapper;

    @Override
    public void saveErrorInfo(LogErrorInfo logErrorInfo) {
        logErrorInfoMapper.insert(logErrorInfo);
    }
}
